.class public Lnet/tsapps/topdeals/DetailActitivty;
.super Lnet/tsapps/topdeals/abstractactivities/SwypeActivity;


# instance fields
.field private A:Landroid/widget/ImageView;

.field private B:Landroid/widget/TextView;

.field private C:Landroid/widget/TextView;

.field private D:Landroid/widget/TextView;

.field private E:Landroid/widget/TextView;

.field private F:Landroid/widget/TextView;

.field private G:Landroid/widget/Button;

.field private H:Landroid/widget/LinearLayout;

.field private I:Landroid/widget/Button;

.field private J:Lnet/tsapps/topdeals/views/TdScrollview;

.field private K:Landroid/widget/LinearLayout;

.field private L:Landroid/widget/LinearLayout;

.field private M:Landroid/widget/LinearLayout;

.field private N:Landroid/widget/LinearLayout;

.field private O:Landroid/widget/LinearLayout;

.field private P:Landroid/widget/LinearLayout;

.field private Q:Landroid/widget/ImageView;

.field private R:Ljava/lang/String;

.field private S:Z

.field private T:Z

.field private k:I

.field private l:Ljava/util/ArrayList;

.field private m:Lnet/tsapps/topdeals/c/m;

.field private n:Lnet/tsapps/topdeals/c/h;

.field private o:Landroid/view/LayoutInflater;

.field private p:Lnet/tsapps/topdeals/objects/Deal;

.field private q:Z

.field private r:Z

.field private s:Lcom/a/a/i;

.field private t:Lnet/tsapps/topdeals/views/TabView;

.field private u:Landroid/widget/ImageView;

.field private v:Landroid/widget/TextView;

.field private w:Landroid/widget/TextView;

.field private x:Landroid/widget/FrameLayout;

.field private y:Landroid/widget/TextView;

.field private z:Landroid/widget/FrameLayout;


# direct methods
.method public constructor <init>()V
    .locals 2

    const/4 v0, 0x0

    invoke-direct {p0}, Lnet/tsapps/topdeals/abstractactivities/SwypeActivity;-><init>()V

    iput v0, p0, Lnet/tsapps/topdeals/DetailActitivty;->k:I

    iput-boolean v0, p0, Lnet/tsapps/topdeals/DetailActitivty;->q:Z

    iput-boolean v0, p0, Lnet/tsapps/topdeals/DetailActitivty;->r:Z

    new-instance v0, Lcom/a/a/i;

    const-string v1, "218525928159483"

    invoke-direct {v0, v1}, Lcom/a/a/i;-><init>(Ljava/lang/String;)V

    iput-object v0, p0, Lnet/tsapps/topdeals/DetailActitivty;->s:Lcom/a/a/i;

    return-void
.end method

.method static synthetic a(Lnet/tsapps/topdeals/DetailActitivty;)Lnet/tsapps/topdeals/views/TdScrollview;
    .locals 1

    iget-object v0, p0, Lnet/tsapps/topdeals/DetailActitivty;->J:Lnet/tsapps/topdeals/views/TdScrollview;

    return-object v0
.end method

.method private a(J)V
    .locals 5

    const/4 v2, 0x0

    move v1, v2

    :goto_0
    iget-object v0, p0, Lnet/tsapps/topdeals/DetailActitivty;->l:Ljava/util/ArrayList;

    invoke-virtual {v0}, Ljava/util/ArrayList;->size()I

    move-result v0

    if-lt v1, v0, :cond_0

    invoke-direct {p0, v2}, Lnet/tsapps/topdeals/DetailActitivty;->b(I)V

    :goto_1
    return-void

    :cond_0
    iget-object v0, p0, Lnet/tsapps/topdeals/DetailActitivty;->l:Ljava/util/ArrayList;

    invoke-virtual {v0, v1}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lnet/tsapps/topdeals/objects/Deal;

    iget-wide v3, v0, Lnet/tsapps/topdeals/objects/Deal;->a:J

    cmp-long v0, v3, p1

    if-nez v0, :cond_1

    invoke-direct {p0, v1}, Lnet/tsapps/topdeals/DetailActitivty;->b(I)V

    goto :goto_1

    :cond_1
    add-int/lit8 v0, v1, 0x1

    move v1, v0

    goto :goto_0
.end method

.method static synthetic a(Lnet/tsapps/topdeals/DetailActitivty;I)V
    .locals 0

    invoke-direct {p0, p1}, Lnet/tsapps/topdeals/DetailActitivty;->b(I)V

    return-void
.end method

.method static synthetic a(Lnet/tsapps/topdeals/DetailActitivty;JILnet/tsapps/topdeals/views/CommentView;)V
    .locals 6

    new-instance v0, Lnet/tsapps/topdeals/bl;

    move-object v1, p0

    move-wide v2, p1

    move v4, p3

    move-object v5, p4

    invoke-direct/range {v0 .. v5}, Lnet/tsapps/topdeals/bl;-><init>(Lnet/tsapps/topdeals/DetailActitivty;JILnet/tsapps/topdeals/views/CommentView;)V

    const-string v1, "Kommentar wird bewertet..."

    invoke-virtual {p0, v1}, Lnet/tsapps/topdeals/DetailActitivty;->b(Ljava/lang/String;)V

    new-instance v1, Ljava/lang/Thread;

    const/4 v2, 0x0

    const-string v3, "MagentoBackground"

    invoke-direct {v1, v2, v0, v3}, Ljava/lang/Thread;-><init>(Ljava/lang/ThreadGroup;Ljava/lang/Runnable;Ljava/lang/String;)V

    invoke-virtual {v1}, Ljava/lang/Thread;->start()V

    return-void
.end method

.method static synthetic a(Lnet/tsapps/topdeals/DetailActitivty;Lnet/tsapps/topdeals/g/a;)V
    .locals 0

    invoke-virtual {p0, p1}, Lnet/tsapps/topdeals/DetailActitivty;->a(Lnet/tsapps/topdeals/g/a;)V

    return-void
.end method

.method static synthetic a(Lnet/tsapps/topdeals/DetailActitivty;Z)V
    .locals 0

    iput-boolean p1, p0, Lnet/tsapps/topdeals/DetailActitivty;->q:Z

    return-void
.end method

.method static synthetic b(Lnet/tsapps/topdeals/DetailActitivty;)Landroid/widget/ImageView;
    .locals 1

    iget-object v0, p0, Lnet/tsapps/topdeals/DetailActitivty;->Q:Landroid/widget/ImageView;

    return-object v0
.end method

.method private b(I)V
    .locals 7

    const/16 v6, 0x8

    const/4 v5, 0x0

    iget-object v0, p0, Lnet/tsapps/topdeals/DetailActitivty;->t:Lnet/tsapps/topdeals/views/TabView;

    invoke-virtual {v0, v5}, Lnet/tsapps/topdeals/views/TabView;->a(I)V

    iget-object v0, p0, Lnet/tsapps/topdeals/DetailActitivty;->l:Ljava/util/ArrayList;

    invoke-virtual {v0, p1}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lnet/tsapps/topdeals/objects/Deal;

    iput-object v0, p0, Lnet/tsapps/topdeals/DetailActitivty;->p:Lnet/tsapps/topdeals/objects/Deal;

    iput p1, p0, Lnet/tsapps/topdeals/DetailActitivty;->k:I

    iget-object v0, p0, Lnet/tsapps/topdeals/DetailActitivty;->n:Lnet/tsapps/topdeals/c/h;

    iget-object v1, p0, Lnet/tsapps/topdeals/DetailActitivty;->p:Lnet/tsapps/topdeals/objects/Deal;

    iget-wide v1, v1, Lnet/tsapps/topdeals/objects/Deal;->a:J

    invoke-virtual {v0, v1, v2}, Lnet/tsapps/topdeals/c/h;->a(J)V

    iget-object v0, p0, Lnet/tsapps/topdeals/DetailActitivty;->m:Lnet/tsapps/topdeals/c/m;

    new-instance v1, Ljava/lang/StringBuilder;

    const v2, 0x7f0b000a

    invoke-virtual {p0, v2}, Lnet/tsapps/topdeals/DetailActitivty;->getString(I)Ljava/lang/String;

    move-result-object v2

    invoke-static {v2}, Ljava/lang/String;->valueOf(Ljava/lang/Object;)Ljava/lang/String;

    move-result-object v2

    invoke-direct {v1, v2}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    iget-object v2, p0, Lnet/tsapps/topdeals/DetailActitivty;->p:Lnet/tsapps/topdeals/objects/Deal;

    iget-wide v2, v2, Lnet/tsapps/topdeals/objects/Deal;->a:J

    invoke-virtual {v1, v2, v3}, Ljava/lang/StringBuilder;->append(J)Ljava/lang/StringBuilder;

    move-result-object v1

    const-string v2, ".png"

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v1

    iget-object v2, p0, Lnet/tsapps/topdeals/DetailActitivty;->u:Landroid/widget/ImageView;

    invoke-virtual {v0, v1, v2}, Lnet/tsapps/topdeals/c/m;->a(Ljava/lang/String;Landroid/widget/ImageView;)V

    invoke-direct {p0}, Lnet/tsapps/topdeals/DetailActitivty;->i()V

    new-instance v0, Ljava/text/SimpleDateFormat;

    const-string v1, "dd.MM.yyyy"

    invoke-direct {v0, v1}, Ljava/text/SimpleDateFormat;-><init>(Ljava/lang/String;)V

    iget-object v1, p0, Lnet/tsapps/topdeals/DetailActitivty;->p:Lnet/tsapps/topdeals/objects/Deal;

    iget-object v1, v1, Lnet/tsapps/topdeals/objects/Deal;->f:Ljava/util/Date;

    invoke-virtual {v0, v1}, Ljava/text/Format;->format(Ljava/lang/Object;)Ljava/lang/String;

    move-result-object v0

    iget-object v1, p0, Lnet/tsapps/topdeals/DetailActitivty;->w:Landroid/widget/TextView;

    invoke-virtual {v1, v0}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    iget-object v0, p0, Lnet/tsapps/topdeals/DetailActitivty;->p:Lnet/tsapps/topdeals/objects/Deal;

    invoke-virtual {v0}, Lnet/tsapps/topdeals/objects/Deal;->b()Z

    move-result v0

    if-eqz v0, :cond_1

    iget-object v0, p0, Lnet/tsapps/topdeals/DetailActitivty;->y:Landroid/widget/TextView;

    const-string v1, "Angebot"

    invoke-virtual {v0, v1}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    iget-object v0, p0, Lnet/tsapps/topdeals/DetailActitivty;->y:Landroid/widget/TextView;

    const/high16 v1, 0x4148

    invoke-virtual {v0, v1}, Landroid/widget/TextView;->setTextSize(F)V

    iget-object v0, p0, Lnet/tsapps/topdeals/DetailActitivty;->x:Landroid/widget/FrameLayout;

    const/4 v1, 0x0

    invoke-virtual {v0, v1}, Landroid/widget/FrameLayout;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    :goto_0
    iget-object v0, p0, Lnet/tsapps/topdeals/DetailActitivty;->p:Lnet/tsapps/topdeals/objects/Deal;

    invoke-virtual {v0}, Lnet/tsapps/topdeals/objects/Deal;->b()Z

    move-result v0

    if-nez v0, :cond_2

    iget-object v0, p0, Lnet/tsapps/topdeals/DetailActitivty;->C:Landroid/widget/TextView;

    new-instance v1, Ljava/lang/StringBuilder;

    const-string v2, "EUR "

    invoke-direct {v1, v2}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    iget-object v2, p0, Lnet/tsapps/topdeals/DetailActitivty;->a:Landroid/content/Context;

    iget-object v3, p0, Lnet/tsapps/topdeals/DetailActitivty;->p:Lnet/tsapps/topdeals/objects/Deal;

    iget-wide v3, v3, Lnet/tsapps/topdeals/objects/Deal;->e:D

    invoke-static {v2, v3, v4}, Lnet/tsapps/topdeals/f/b;->a(Landroid/content/Context;D)Ljava/lang/String;

    move-result-object v2

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v0, v1}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    iget-object v0, p0, Lnet/tsapps/topdeals/DetailActitivty;->C:Landroid/widget/TextView;

    iget-object v1, p0, Lnet/tsapps/topdeals/DetailActitivty;->C:Landroid/widget/TextView;

    invoke-virtual {v1}, Landroid/widget/TextView;->getPaintFlags()I

    move-result v1

    or-int/lit8 v1, v1, 0x10

    invoke-virtual {v0, v1}, Landroid/widget/TextView;->setPaintFlags(I)V

    iget-object v0, p0, Lnet/tsapps/topdeals/DetailActitivty;->C:Landroid/widget/TextView;

    invoke-virtual {v0, v5}, Landroid/widget/TextView;->setVisibility(I)V

    :goto_1
    iget-object v0, p0, Lnet/tsapps/topdeals/DetailActitivty;->p:Lnet/tsapps/topdeals/objects/Deal;

    invoke-virtual {v0}, Lnet/tsapps/topdeals/objects/Deal;->c()Z

    move-result v0

    if-eqz v0, :cond_3

    iget-object v0, p0, Lnet/tsapps/topdeals/DetailActitivty;->D:Landroid/widget/TextView;

    new-instance v1, Ljava/lang/StringBuilder;

    const-string v2, "EUR "

    invoke-direct {v1, v2}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    iget-object v2, p0, Lnet/tsapps/topdeals/DetailActitivty;->a:Landroid/content/Context;

    iget-object v3, p0, Lnet/tsapps/topdeals/DetailActitivty;->p:Lnet/tsapps/topdeals/objects/Deal;

    iget-wide v3, v3, Lnet/tsapps/topdeals/objects/Deal;->c:D

    invoke-static {v2, v3, v4}, Lnet/tsapps/topdeals/f/b;->a(Landroid/content/Context;D)Ljava/lang/String;

    move-result-object v2

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v0, v1}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    iget-object v0, p0, Lnet/tsapps/topdeals/DetailActitivty;->K:Landroid/widget/LinearLayout;

    invoke-virtual {v0, v5}, Landroid/widget/LinearLayout;->setVisibility(I)V

    :goto_2
    const-string v0, ""

    iget-object v1, p0, Lnet/tsapps/topdeals/DetailActitivty;->p:Lnet/tsapps/topdeals/objects/Deal;

    iget-wide v1, v1, Lnet/tsapps/topdeals/objects/Deal;->d:D

    const-wide/16 v3, 0x0

    cmpl-double v1, v1, v3

    if-lez v1, :cond_0

    new-instance v0, Ljava/lang/StringBuilder;

    const-string v1, " + "

    invoke-direct {v0, v1}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    iget-object v1, p0, Lnet/tsapps/topdeals/DetailActitivty;->a:Landroid/content/Context;

    iget-object v2, p0, Lnet/tsapps/topdeals/DetailActitivty;->p:Lnet/tsapps/topdeals/objects/Deal;

    iget-wide v2, v2, Lnet/tsapps/topdeals/objects/Deal;->d:D

    invoke-static {v1, v2, v3}, Lnet/tsapps/topdeals/f/b;->a(Landroid/content/Context;D)Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v0

    const-string v1, " VSK"

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v0

    invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v0

    :cond_0
    iget-object v1, p0, Lnet/tsapps/topdeals/DetailActitivty;->E:Landroid/widget/TextView;

    invoke-virtual {v1, v0}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    invoke-direct {p0}, Lnet/tsapps/topdeals/DetailActitivty;->g()V

    invoke-direct {p0}, Lnet/tsapps/topdeals/DetailActitivty;->f()V

    invoke-direct {p0}, Lnet/tsapps/topdeals/DetailActitivty;->h()V

    iget-object v0, p0, Lnet/tsapps/topdeals/DetailActitivty;->v:Landroid/widget/TextView;

    iget-object v1, p0, Lnet/tsapps/topdeals/DetailActitivty;->p:Lnet/tsapps/topdeals/objects/Deal;

    iget-object v1, v1, Lnet/tsapps/topdeals/objects/Deal;->b:Ljava/lang/String;

    invoke-virtual {v0, v1}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    iget-object v0, p0, Lnet/tsapps/topdeals/DetailActitivty;->B:Landroid/widget/TextView;

    new-instance v1, Ljava/lang/StringBuilder;

    const-string v2, "@"

    invoke-direct {v1, v2}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    iget-object v2, p0, Lnet/tsapps/topdeals/DetailActitivty;->p:Lnet/tsapps/topdeals/objects/Deal;

    iget-object v2, v2, Lnet/tsapps/topdeals/objects/Deal;->h:Ljava/lang/String;

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v0, v1}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    iget-object v0, p0, Lnet/tsapps/topdeals/DetailActitivty;->F:Landroid/widget/TextView;

    iget-object v1, p0, Lnet/tsapps/topdeals/DetailActitivty;->p:Lnet/tsapps/topdeals/objects/Deal;

    iget-object v1, v1, Lnet/tsapps/topdeals/objects/Deal;->g:Ljava/lang/String;

    invoke-virtual {v0, v1}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    iget-object v0, p0, Lnet/tsapps/topdeals/DetailActitivty;->J:Lnet/tsapps/topdeals/views/TdScrollview;

    invoke-virtual {v0, v5, v5}, Lnet/tsapps/topdeals/views/TdScrollview;->scrollTo(II)V

    invoke-virtual {p0}, Lnet/tsapps/topdeals/DetailActitivty;->d()V

    return-void

    :cond_1
    iget-object v0, p0, Lnet/tsapps/topdeals/DetailActitivty;->y:Landroid/widget/TextView;

    const/high16 v1, 0x4180

    invoke-virtual {v0, v1}, Landroid/widget/TextView;->setTextSize(F)V

    iget-object v0, p0, Lnet/tsapps/topdeals/DetailActitivty;->y:Landroid/widget/TextView;

    new-instance v1, Ljava/lang/StringBuilder;

    const-string v2, "-"

    invoke-direct {v1, v2}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    iget-object v2, p0, Lnet/tsapps/topdeals/DetailActitivty;->p:Lnet/tsapps/topdeals/objects/Deal;

    invoke-virtual {v2}, Lnet/tsapps/topdeals/objects/Deal;->d()I

    move-result v2

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    move-result-object v1

    const-string v2, "%"

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v0, v1}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    iget-object v0, p0, Lnet/tsapps/topdeals/DetailActitivty;->x:Landroid/widget/FrameLayout;

    new-instance v1, Lnet/tsapps/topdeals/bm;

    invoke-direct {v1, p0}, Lnet/tsapps/topdeals/bm;-><init>(Lnet/tsapps/topdeals/DetailActitivty;)V

    invoke-virtual {v0, v1}, Landroid/widget/FrameLayout;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    goto/16 :goto_0

    :cond_2
    iget-object v0, p0, Lnet/tsapps/topdeals/DetailActitivty;->C:Landroid/widget/TextView;

    invoke-virtual {v0, v6}, Landroid/widget/TextView;->setVisibility(I)V

    goto/16 :goto_1

    :cond_3
    iget-object v0, p0, Lnet/tsapps/topdeals/DetailActitivty;->K:Landroid/widget/LinearLayout;

    invoke-virtual {v0, v6}, Landroid/widget/LinearLayout;->setVisibility(I)V

    goto/16 :goto_2
.end method

.method static synthetic c(Lnet/tsapps/topdeals/DetailActitivty;)V
    .locals 0

    invoke-direct {p0}, Lnet/tsapps/topdeals/DetailActitivty;->j()V

    return-void
.end method

.method static synthetic d(Lnet/tsapps/topdeals/DetailActitivty;)Lnet/tsapps/topdeals/objects/Deal;
    .locals 1

    iget-object v0, p0, Lnet/tsapps/topdeals/DetailActitivty;->p:Lnet/tsapps/topdeals/objects/Deal;

    return-object v0
.end method

.method static synthetic e(Lnet/tsapps/topdeals/DetailActitivty;)Lnet/tsapps/topdeals/h/a;
    .locals 1

    iget-object v0, p0, Lnet/tsapps/topdeals/DetailActitivty;->b:Lnet/tsapps/topdeals/h/a;

    return-object v0
.end method

.method private f()V
    .locals 8

    const/4 v7, 0x0

    const/4 v6, 0x0

    iget-object v0, p0, Lnet/tsapps/topdeals/DetailActitivty;->L:Landroid/widget/LinearLayout;

    invoke-virtual {v0}, Landroid/widget/LinearLayout;->removeAllViews()V

    iget-object v0, p0, Lnet/tsapps/topdeals/DetailActitivty;->p:Lnet/tsapps/topdeals/objects/Deal;

    iget-object v0, v0, Lnet/tsapps/topdeals/objects/Deal;->k:Ljava/util/List;

    invoke-interface {v0}, Ljava/util/List;->iterator()Ljava/util/Iterator;

    move-result-object v2

    :goto_0
    invoke-interface {v2}, Ljava/util/Iterator;->hasNext()Z

    move-result v0

    if-nez v0, :cond_0

    return-void

    :cond_0
    invoke-interface {v2}, Ljava/util/Iterator;->next()Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lnet/tsapps/topdeals/objects/Voucher;

    iget-object v1, p0, Lnet/tsapps/topdeals/DetailActitivty;->o:Landroid/view/LayoutInflater;

    const v3, 0x7f030021

    invoke-virtual {v1, v3, v7, v6}, Landroid/view/LayoutInflater;->inflate(ILandroid/view/ViewGroup;Z)Landroid/view/View;

    move-result-object v3

    const v1, 0x7f05005d

    invoke-virtual {v3, v1}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v1

    check-cast v1, Landroid/widget/TextView;

    iget-object v4, v0, Lnet/tsapps/topdeals/objects/Voucher;->a:Ljava/lang/String;

    invoke-virtual {v1, v4}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    iget-object v1, p0, Lnet/tsapps/topdeals/DetailActitivty;->L:Landroid/widget/LinearLayout;

    iget-object v4, p0, Lnet/tsapps/topdeals/DetailActitivty;->o:Landroid/view/LayoutInflater;

    const v5, 0x7f03001b

    invoke-virtual {v4, v5, v7, v6}, Landroid/view/LayoutInflater;->inflate(ILandroid/view/ViewGroup;Z)Landroid/view/View;

    move-result-object v4

    invoke-virtual {v1, v4}, Landroid/widget/LinearLayout;->addView(Landroid/view/View;)V

    iget-object v1, p0, Lnet/tsapps/topdeals/DetailActitivty;->L:Landroid/widget/LinearLayout;

    invoke-virtual {v1, v3}, Landroid/widget/LinearLayout;->addView(Landroid/view/View;)V

    new-instance v1, Lnet/tsapps/topdeals/bi;

    invoke-direct {v1, p0, v0}, Lnet/tsapps/topdeals/bi;-><init>(Lnet/tsapps/topdeals/DetailActitivty;Lnet/tsapps/topdeals/objects/Voucher;)V

    invoke-virtual {v3, v1}, Landroid/view/View;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    goto :goto_0
.end method

.method static synthetic f(Lnet/tsapps/topdeals/DetailActitivty;)V
    .locals 0

    invoke-direct {p0}, Lnet/tsapps/topdeals/DetailActitivty;->h()V

    return-void
.end method

.method private g()V
    .locals 10

    const/4 v9, 0x0

    const/4 v8, 0x0

    iget-object v0, p0, Lnet/tsapps/topdeals/DetailActitivty;->M:Landroid/widget/LinearLayout;

    invoke-virtual {v0}, Landroid/widget/LinearLayout;->removeAllViews()V

    iget-object v0, p0, Lnet/tsapps/topdeals/DetailActitivty;->p:Lnet/tsapps/topdeals/objects/Deal;

    iget-object v0, v0, Lnet/tsapps/topdeals/objects/Deal;->j:Ljava/util/List;

    invoke-interface {v0}, Ljava/util/List;->iterator()Ljava/util/Iterator;

    move-result-object v4

    :goto_0
    invoke-interface {v4}, Ljava/util/Iterator;->hasNext()Z

    move-result v0

    if-nez v0, :cond_0

    return-void

    :cond_0
    invoke-interface {v4}, Ljava/util/Iterator;->next()Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lnet/tsapps/topdeals/objects/Xtra;

    iget-object v1, p0, Lnet/tsapps/topdeals/DetailActitivty;->o:Landroid/view/LayoutInflater;

    const v2, 0x7f030023

    invoke-virtual {v1, v2, v9, v8}, Landroid/view/LayoutInflater;->inflate(ILandroid/view/ViewGroup;Z)Landroid/view/View;

    move-result-object v5

    const v1, 0x7f05005f

    invoke-virtual {v5, v1}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v1

    check-cast v1, Landroid/widget/TextView;

    const v2, 0x7f050060

    invoke-virtual {v5, v2}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v2

    check-cast v2, Landroid/widget/TextView;

    const v3, 0x7f05005e

    invoke-virtual {v5, v3}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v3

    check-cast v3, Landroid/widget/ImageView;

    iget-object v6, v0, Lnet/tsapps/topdeals/objects/Xtra;->c:Ljava/lang/String;

    invoke-virtual {v1, v6}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    iget-object v1, v0, Lnet/tsapps/topdeals/objects/Xtra;->d:Ljava/lang/String;

    invoke-virtual {v2, v1}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    iget-object v1, p0, Lnet/tsapps/topdeals/DetailActitivty;->n:Lnet/tsapps/topdeals/c/h;

    new-instance v2, Ljava/lang/StringBuilder;

    const-string v6, "http://mytopdeals.net/images/xtras/xtra_"

    invoke-direct {v2, v6}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    iget v6, v0, Lnet/tsapps/topdeals/objects/Xtra;->b:I

    invoke-virtual {v2, v6}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    move-result-object v2

    const-string v6, ".png"

    invoke-virtual {v2, v6}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v2

    invoke-virtual {v2}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v2

    iget-object v6, p0, Lnet/tsapps/topdeals/DetailActitivty;->p:Lnet/tsapps/topdeals/objects/Deal;

    iget-wide v6, v6, Lnet/tsapps/topdeals/objects/Deal;->a:J

    invoke-virtual {v1, v2, v3, v6, v7}, Lnet/tsapps/topdeals/c/h;->a(Ljava/lang/String;Landroid/widget/ImageView;J)V

    iget-object v1, p0, Lnet/tsapps/topdeals/DetailActitivty;->M:Landroid/widget/LinearLayout;

    iget-object v2, p0, Lnet/tsapps/topdeals/DetailActitivty;->o:Landroid/view/LayoutInflater;

    const v3, 0x7f03001b

    invoke-virtual {v2, v3, v9, v8}, Landroid/view/LayoutInflater;->inflate(ILandroid/view/ViewGroup;Z)Landroid/view/View;

    move-result-object v2

    invoke-virtual {v1, v2}, Landroid/widget/LinearLayout;->addView(Landroid/view/View;)V

    iget-object v1, p0, Lnet/tsapps/topdeals/DetailActitivty;->M:Landroid/widget/LinearLayout;

    invoke-virtual {v1, v5}, Landroid/widget/LinearLayout;->addView(Landroid/view/View;)V

    new-instance v1, Lnet/tsapps/topdeals/bj;

    invoke-direct {v1, p0, v0}, Lnet/tsapps/topdeals/bj;-><init>(Lnet/tsapps/topdeals/DetailActitivty;Lnet/tsapps/topdeals/objects/Xtra;)V

    invoke-virtual {v5, v1}, Landroid/view/View;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    goto :goto_0
.end method

.method static synthetic g(Lnet/tsapps/topdeals/DetailActitivty;)V
    .locals 0

    invoke-virtual {p0}, Lnet/tsapps/topdeals/DetailActitivty;->b()V

    return-void
.end method

.method static synthetic h(Lnet/tsapps/topdeals/DetailActitivty;)Landroid/content/Context;
    .locals 1

    iget-object v0, p0, Lnet/tsapps/topdeals/DetailActitivty;->a:Landroid/content/Context;

    return-object v0
.end method

.method private h()V
    .locals 4

    iget-object v0, p0, Lnet/tsapps/topdeals/DetailActitivty;->t:Lnet/tsapps/topdeals/views/TabView;

    iget-object v1, p0, Lnet/tsapps/topdeals/DetailActitivty;->p:Lnet/tsapps/topdeals/objects/Deal;

    iget-object v1, v1, Lnet/tsapps/topdeals/objects/Deal;->i:Ljava/util/List;

    invoke-interface {v1}, Ljava/util/List;->size()I

    move-result v1

    invoke-virtual {v0, v1}, Lnet/tsapps/topdeals/views/TabView;->b(I)V

    iget-object v0, p0, Lnet/tsapps/topdeals/DetailActitivty;->H:Landroid/widget/LinearLayout;

    invoke-virtual {v0}, Landroid/widget/LinearLayout;->removeAllViews()V

    iget-object v0, p0, Lnet/tsapps/topdeals/DetailActitivty;->p:Lnet/tsapps/topdeals/objects/Deal;

    iget-object v0, v0, Lnet/tsapps/topdeals/objects/Deal;->i:Ljava/util/List;

    invoke-interface {v0}, Ljava/util/List;->size()I

    move-result v0

    if-nez v0, :cond_1

    iget-object v0, p0, Lnet/tsapps/topdeals/DetailActitivty;->o:Landroid/view/LayoutInflater;

    const v1, 0x7f030019

    const/4 v2, 0x0

    const/4 v3, 0x0

    invoke-virtual {v0, v1, v2, v3}, Landroid/view/LayoutInflater;->inflate(ILandroid/view/ViewGroup;Z)Landroid/view/View;

    move-result-object v0

    iget-object v1, p0, Lnet/tsapps/topdeals/DetailActitivty;->H:Landroid/widget/LinearLayout;

    invoke-virtual {v1, v0}, Landroid/widget/LinearLayout;->addView(Landroid/view/View;)V

    :cond_0
    return-void

    :cond_1
    iget-object v0, p0, Lnet/tsapps/topdeals/DetailActitivty;->p:Lnet/tsapps/topdeals/objects/Deal;

    iget-object v0, v0, Lnet/tsapps/topdeals/objects/Deal;->i:Ljava/util/List;

    invoke-interface {v0}, Ljava/util/List;->iterator()Ljava/util/Iterator;

    move-result-object v1

    :goto_0
    invoke-interface {v1}, Ljava/util/Iterator;->hasNext()Z

    move-result v0

    if-eqz v0, :cond_0

    invoke-interface {v1}, Ljava/util/Iterator;->next()Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lnet/tsapps/topdeals/objects/Comment;

    new-instance v2, Lnet/tsapps/topdeals/views/CommentView;

    invoke-direct {v2, p0}, Lnet/tsapps/topdeals/views/CommentView;-><init>(Landroid/content/Context;)V

    invoke-virtual {v2, v0}, Lnet/tsapps/topdeals/views/CommentView;->a(Lnet/tsapps/topdeals/objects/Comment;)V

    iget-object v0, p0, Lnet/tsapps/topdeals/DetailActitivty;->H:Landroid/widget/LinearLayout;

    invoke-virtual {v0, v2}, Landroid/widget/LinearLayout;->addView(Landroid/view/View;)V

    goto :goto_0
.end method

.method private i()V
    .locals 3

    iget-object v0, p0, Lnet/tsapps/topdeals/DetailActitivty;->b:Lnet/tsapps/topdeals/h/a;

    iget-object v1, p0, Lnet/tsapps/topdeals/DetailActitivty;->p:Lnet/tsapps/topdeals/objects/Deal;

    iget-wide v1, v1, Lnet/tsapps/topdeals/objects/Deal;->a:J

    invoke-virtual {v0, v1, v2}, Lnet/tsapps/topdeals/h/a;->b(J)Z

    move-result v0

    if-eqz v0, :cond_0

    iget-object v0, p0, Lnet/tsapps/topdeals/DetailActitivty;->A:Landroid/widget/ImageView;

    const v1, 0x7f020043

    invoke-virtual {v0, v1}, Landroid/widget/ImageView;->setImageResource(I)V

    :goto_0
    return-void

    :cond_0
    iget-object v0, p0, Lnet/tsapps/topdeals/DetailActitivty;->A:Landroid/widget/ImageView;

    const v1, 0x7f020044

    invoke-virtual {v0, v1}, Landroid/widget/ImageView;->setImageResource(I)V

    goto :goto_0
.end method

.method static synthetic i(Lnet/tsapps/topdeals/DetailActitivty;)V
    .locals 1

    const/4 v0, 0x1

    iput-boolean v0, p0, Lnet/tsapps/topdeals/DetailActitivty;->r:Z

    return-void
.end method

.method private j()V
    .locals 3

    new-instance v0, Landroid/content/Intent;

    const-class v1, Lnet/tsapps/topdeals/DealListActivity;

    invoke-direct {v0, p0, v1}, Landroid/content/Intent;-><init>(Landroid/content/Context;Ljava/lang/Class;)V

    iget-boolean v1, p0, Lnet/tsapps/topdeals/DetailActitivty;->r:Z

    if-nez v1, :cond_0

    const-string v1, "refresh"

    const/4 v2, 0x0

    invoke-virtual {v0, v1, v2}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Z)Landroid/content/Intent;

    :cond_0
    invoke-virtual {p0, v0}, Lnet/tsapps/topdeals/DetailActitivty;->startActivity(Landroid/content/Intent;)V

    invoke-virtual {p0}, Lnet/tsapps/topdeals/DetailActitivty;->finish()V

    return-void
.end method

.method static synthetic j(Lnet/tsapps/topdeals/DetailActitivty;)V
    .locals 0

    invoke-direct {p0}, Lnet/tsapps/topdeals/DetailActitivty;->i()V

    return-void
.end method

.method static synthetic k(Lnet/tsapps/topdeals/DetailActitivty;)Z
    .locals 1

    iget-boolean v0, p0, Lnet/tsapps/topdeals/DetailActitivty;->q:Z

    return v0
.end method

.method static synthetic l(Lnet/tsapps/topdeals/DetailActitivty;)Landroid/widget/TextView;
    .locals 1

    iget-object v0, p0, Lnet/tsapps/topdeals/DetailActitivty;->y:Landroid/widget/TextView;

    return-object v0
.end method

.method static synthetic m(Lnet/tsapps/topdeals/DetailActitivty;)Ljava/util/ArrayList;
    .locals 1

    iget-object v0, p0, Lnet/tsapps/topdeals/DetailActitivty;->l:Ljava/util/ArrayList;

    return-object v0
.end method

.method static synthetic n(Lnet/tsapps/topdeals/DetailActitivty;)I
    .locals 1

    iget v0, p0, Lnet/tsapps/topdeals/DetailActitivty;->k:I

    return v0
.end method

.method static synthetic o(Lnet/tsapps/topdeals/DetailActitivty;)V
    .locals 1

    const/4 v0, 0x0

    iput-boolean v0, p0, Lnet/tsapps/topdeals/DetailActitivty;->i:Z

    return-void
.end method


# virtual methods
.method protected final a()V
    .locals 4

    iget v0, p0, Lnet/tsapps/topdeals/DetailActitivty;->k:I

    iget-object v1, p0, Lnet/tsapps/topdeals/DetailActitivty;->l:Ljava/util/ArrayList;

    invoke-virtual {v1}, Ljava/util/ArrayList;->size()I

    move-result v1

    add-int/lit8 v1, v1, -0x1

    if-ne v0, v1, :cond_2

    iget-object v0, p0, Lnet/tsapps/topdeals/DetailActitivty;->R:Ljava/lang/String;

    const-string v1, "top"

    invoke-virtual {v0, v1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v0

    if-eqz v0, :cond_0

    new-instance v0, Lnet/tsapps/topdeals/bn;

    invoke-direct {v0, p0}, Lnet/tsapps/topdeals/bn;-><init>(Lnet/tsapps/topdeals/DetailActitivty;)V

    new-instance v1, Ljava/lang/Thread;

    const/4 v2, 0x0

    const-string v3, "MagentoBackground"

    invoke-direct {v1, v2, v0, v3}, Ljava/lang/Thread;-><init>(Ljava/lang/ThreadGroup;Ljava/lang/Runnable;Ljava/lang/String;)V

    const-string v0, "Lade vorherige Deals..."

    invoke-virtual {p0, v0}, Lnet/tsapps/topdeals/DetailActitivty;->b(Ljava/lang/String;)V

    invoke-virtual {v1}, Ljava/lang/Thread;->start()V

    :goto_0
    return-void

    :cond_0
    iget-boolean v0, p0, Lnet/tsapps/topdeals/DetailActitivty;->T:Z

    if-eqz v0, :cond_1

    const-string v0, "\u00c4ltere Deals bitte \u00fcber die Listenansicht ausw\u00e4hlen."

    invoke-virtual {p0, v0}, Lnet/tsapps/topdeals/DetailActitivty;->a(Ljava/lang/String;)V

    goto :goto_0

    :cond_1
    const-string v0, "Keine \u00e4lteren Deals vorhanden."

    invoke-virtual {p0, v0}, Lnet/tsapps/topdeals/DetailActitivty;->a(Ljava/lang/String;)V

    goto :goto_0

    :cond_2
    const v0, 0x7f040001

    invoke-static {p0, v0}, Landroid/view/animation/AnimationUtils;->loadAnimation(Landroid/content/Context;I)Landroid/view/animation/Animation;

    move-result-object v0

    new-instance v1, Lnet/tsapps/topdeals/ar;

    invoke-direct {v1, p0}, Lnet/tsapps/topdeals/ar;-><init>(Lnet/tsapps/topdeals/DetailActitivty;)V

    invoke-virtual {v0, v1}, Landroid/view/animation/Animation;->setAnimationListener(Landroid/view/animation/Animation$AnimationListener;)V

    const/4 v1, 0x1

    iput-boolean v1, p0, Lnet/tsapps/topdeals/DetailActitivty;->i:Z

    iget-object v1, p0, Lnet/tsapps/topdeals/DetailActitivty;->J:Lnet/tsapps/topdeals/views/TdScrollview;

    invoke-virtual {v1, v0}, Lnet/tsapps/topdeals/views/TdScrollview;->startAnimation(Landroid/view/animation/Animation;)V

    goto :goto_0
.end method

.method protected final a(JLjava/lang/String;Ljava/lang/String;Lnet/tsapps/topdeals/b/l;)V
    .locals 7

    const/4 v0, 0x1

    iput-boolean v0, p0, Lnet/tsapps/topdeals/DetailActitivty;->r:Z

    new-instance v0, Lnet/tsapps/topdeals/g;

    move-object v1, p0

    move-wide v2, p1

    move-object v4, p3

    move-object v5, p4

    move-object v6, p5

    invoke-direct/range {v0 .. v6}, Lnet/tsapps/topdeals/g;-><init>(Lnet/tsapps/topdeals/DetailActitivty;JLjava/lang/String;Ljava/lang/String;Lnet/tsapps/topdeals/b/l;)V

    const-string v1, "Kommentar wird gespeichert..."

    invoke-virtual {p0, v1}, Lnet/tsapps/topdeals/DetailActitivty;->b(Ljava/lang/String;)V

    new-instance v1, Ljava/lang/Thread;

    const/4 v2, 0x0

    const-string v3, "MagentoBackground"

    invoke-direct {v1, v2, v0, v3}, Ljava/lang/Thread;-><init>(Ljava/lang/ThreadGroup;Ljava/lang/Runnable;Ljava/lang/String;)V

    invoke-virtual {v1}, Ljava/lang/Thread;->start()V

    return-void
.end method

.method public final a(JLnet/tsapps/topdeals/views/CommentView;)V
    .locals 2

    new-instance v0, Lnet/tsapps/topdeals/b/b;

    new-instance v1, Lnet/tsapps/topdeals/bk;

    invoke-direct {v1, p0, p1, p2, p3}, Lnet/tsapps/topdeals/bk;-><init>(Lnet/tsapps/topdeals/DetailActitivty;JLnet/tsapps/topdeals/views/CommentView;)V

    invoke-direct {v0, p0, v1}, Lnet/tsapps/topdeals/b/b;-><init>(Landroid/content/Context;Landroid/content/DialogInterface$OnClickListener;)V

    invoke-virtual {v0}, Lnet/tsapps/topdeals/b/b;->show()V

    return-void
.end method

.method public final a(Lnet/tsapps/topdeals/objects/Deal;)V
    .locals 5

    new-instance v0, Landroid/os/Bundle;

    invoke-direct {v0}, Landroid/os/Bundle;-><init>()V

    const-string v1, "link"

    new-instance v2, Ljava/lang/StringBuilder;

    const-string v3, "http://mytopdeals.net/detail.php?id="

    invoke-direct {v2, v3}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    iget-wide v3, p1, Lnet/tsapps/topdeals/objects/Deal;->a:J

    invoke-virtual {v2, v3, v4}, Ljava/lang/StringBuilder;->append(J)Ljava/lang/StringBuilder;

    move-result-object v2

    invoke-virtual {v2}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v2

    invoke-virtual {v0, v1, v2}, Landroid/os/Bundle;->putString(Ljava/lang/String;Ljava/lang/String;)V

    const-string v1, "picture"

    new-instance v2, Ljava/lang/StringBuilder;

    const-string v3, "http://mytopdeals.net/images/icon_"

    invoke-direct {v2, v3}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    iget-wide v3, p1, Lnet/tsapps/topdeals/objects/Deal;->a:J

    invoke-virtual {v2, v3, v4}, Ljava/lang/StringBuilder;->append(J)Ljava/lang/StringBuilder;

    move-result-object v2

    const-string v3, ".png"

    invoke-virtual {v2, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v2

    invoke-virtual {v2}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v2

    invoke-virtual {v0, v1, v2}, Landroid/os/Bundle;->putString(Ljava/lang/String;Ljava/lang/String;)V

    const-string v1, "name"

    iget-object v2, p1, Lnet/tsapps/topdeals/objects/Deal;->b:Ljava/lang/String;

    invoke-virtual {v0, v1, v2}, Landroid/os/Bundle;->putString(Ljava/lang/String;Ljava/lang/String;)V

    const-string v1, "description"

    iget-object v2, p1, Lnet/tsapps/topdeals/objects/Deal;->g:Ljava/lang/String;

    invoke-virtual {v0, v1, v2}, Landroid/os/Bundle;->putString(Ljava/lang/String;Ljava/lang/String;)V

    iget-object v1, p0, Lnet/tsapps/topdeals/DetailActitivty;->s:Lcom/a/a/i;

    iget-object v2, p0, Lnet/tsapps/topdeals/DetailActitivty;->a:Landroid/content/Context;

    const-string v3, "feed"

    new-instance v4, Lnet/tsapps/topdeals/k;

    invoke-direct {v4, p0}, Lnet/tsapps/topdeals/k;-><init>(Lnet/tsapps/topdeals/DetailActitivty;)V

    invoke-virtual {v1, v2, v3, v0, v4}, Lcom/a/a/i;->a(Landroid/content/Context;Ljava/lang/String;Landroid/os/Bundle;Lcom/a/a/g;)V

    return-void
.end method

.method protected final e()V
    .locals 2

    iget v0, p0, Lnet/tsapps/topdeals/DetailActitivty;->k:I

    if-nez v0, :cond_1

    iget-boolean v0, p0, Lnet/tsapps/topdeals/DetailActitivty;->S:Z

    if-eqz v0, :cond_0

    const-string v0, "Neuere Deals bitte \u00fcber die Listenansicht ausw\u00e4hlen"

    invoke-virtual {p0, v0}, Lnet/tsapps/topdeals/DetailActitivty;->a(Ljava/lang/String;)V

    :goto_0
    return-void

    :cond_0
    const-string v0, "Keine neueren Deals vorhanden."

    invoke-virtual {p0, v0}, Lnet/tsapps/topdeals/DetailActitivty;->a(Ljava/lang/String;)V

    goto :goto_0

    :cond_1
    const v0, 0x10a0003

    invoke-static {p0, v0}, Landroid/view/animation/AnimationUtils;->loadAnimation(Landroid/content/Context;I)Landroid/view/animation/Animation;

    move-result-object v0

    new-instance v1, Lnet/tsapps/topdeals/aq;

    invoke-direct {v1, p0}, Lnet/tsapps/topdeals/aq;-><init>(Lnet/tsapps/topdeals/DetailActitivty;)V

    invoke-virtual {v0, v1}, Landroid/view/animation/Animation;->setAnimationListener(Landroid/view/animation/Animation$AnimationListener;)V

    const/4 v1, 0x1

    iput-boolean v1, p0, Lnet/tsapps/topdeals/DetailActitivty;->i:Z

    iget-object v1, p0, Lnet/tsapps/topdeals/DetailActitivty;->J:Lnet/tsapps/topdeals/views/TdScrollview;

    invoke-virtual {v1, v0}, Lnet/tsapps/topdeals/views/TdScrollview;->startAnimation(Landroid/view/animation/Animation;)V

    goto :goto_0
.end method

.method public onActivityResult(IILandroid/content/Intent;)V
    .locals 1

    invoke-super {p0, p1, p2, p3}, Lnet/tsapps/topdeals/abstractactivities/SwypeActivity;->onActivityResult(IILandroid/content/Intent;)V

    iget-object v0, p0, Lnet/tsapps/topdeals/DetailActitivty;->s:Lcom/a/a/i;

    invoke-virtual {v0, p1, p2, p3}, Lcom/a/a/i;->a(IILandroid/content/Intent;)V

    return-void
.end method

.method public onCreate(Landroid/os/Bundle;)V
    .locals 9

    const v8, 0x7f050011

    const v7, 0x7f050007

    const/4 v3, 0x1

    const-wide/16 v5, 0x0

    const/4 v4, 0x0

    invoke-super {p0, p1}, Lnet/tsapps/topdeals/abstractactivities/SwypeActivity;->onCreate(Landroid/os/Bundle;)V

    const v0, 0x7f030002

    invoke-virtual {p0, v0}, Lnet/tsapps/topdeals/DetailActitivty;->setContentView(I)V

    invoke-virtual {p0}, Lnet/tsapps/topdeals/DetailActitivty;->c()V

    const-string v0, "layout_inflater"

    invoke-virtual {p0, v0}, Lnet/tsapps/topdeals/DetailActitivty;->getSystemService(Ljava/lang/String;)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Landroid/view/LayoutInflater;

    iput-object v0, p0, Lnet/tsapps/topdeals/DetailActitivty;->o:Landroid/view/LayoutInflater;

    invoke-virtual {p0}, Lnet/tsapps/topdeals/DetailActitivty;->getIntent()Landroid/content/Intent;

    move-result-object v0

    const-string v1, "deallist"

    invoke-virtual {v0, v1}, Landroid/content/Intent;->getParcelableArrayListExtra(Ljava/lang/String;)Ljava/util/ArrayList;

    move-result-object v0

    iput-object v0, p0, Lnet/tsapps/topdeals/DetailActitivty;->l:Ljava/util/ArrayList;

    new-instance v1, Lnet/tsapps/topdeals/c/m;

    iget-object v2, p0, Lnet/tsapps/topdeals/DetailActitivty;->a:Landroid/content/Context;

    invoke-virtual {p0, v8}, Lnet/tsapps/topdeals/DetailActitivty;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/LinearLayout;

    invoke-direct {v1, v2, v0}, Lnet/tsapps/topdeals/c/m;-><init>(Landroid/content/Context;Landroid/widget/LinearLayout;)V

    iput-object v1, p0, Lnet/tsapps/topdeals/DetailActitivty;->m:Lnet/tsapps/topdeals/c/m;

    new-instance v0, Lnet/tsapps/topdeals/c/h;

    iget-object v1, p0, Lnet/tsapps/topdeals/DetailActitivty;->a:Landroid/content/Context;

    invoke-direct {v0, v1}, Lnet/tsapps/topdeals/c/h;-><init>(Landroid/content/Context;)V

    iput-object v0, p0, Lnet/tsapps/topdeals/DetailActitivty;->n:Lnet/tsapps/topdeals/c/h;

    iget-object v0, p0, Lnet/tsapps/topdeals/DetailActitivty;->b:Lnet/tsapps/topdeals/h/a;

    iget-object v0, v0, Lnet/tsapps/topdeals/h/a;->a:Landroid/content/SharedPreferences;

    const-string v1, "notifiedaboutswype"

    invoke-interface {v0, v1, v4}, Landroid/content/SharedPreferences;->getBoolean(Ljava/lang/String;Z)Z

    move-result v0

    if-nez v0, :cond_0

    iget-object v0, p0, Lnet/tsapps/topdeals/DetailActitivty;->b:Lnet/tsapps/topdeals/h/a;

    iget-object v0, v0, Lnet/tsapps/topdeals/h/a;->a:Landroid/content/SharedPreferences;

    invoke-interface {v0}, Landroid/content/SharedPreferences;->edit()Landroid/content/SharedPreferences$Editor;

    move-result-object v0

    invoke-virtual {p0, v3}, Lnet/tsapps/topdeals/DetailActitivty;->showDialog(I)V

    const-string v1, "notifiedaboutswype"

    invoke-interface {v0, v1, v3}, Landroid/content/SharedPreferences$Editor;->putBoolean(Ljava/lang/String;Z)Landroid/content/SharedPreferences$Editor;

    invoke-interface {v0}, Landroid/content/SharedPreferences$Editor;->commit()Z

    :cond_0
    const v0, 0x7f050010

    invoke-virtual {p0, v0}, Lnet/tsapps/topdeals/DetailActitivty;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Lnet/tsapps/topdeals/views/TdScrollview;

    iput-object v0, p0, Lnet/tsapps/topdeals/DetailActitivty;->J:Lnet/tsapps/topdeals/views/TdScrollview;

    const v0, 0x7f050006

    invoke-virtual {p0, v0}, Lnet/tsapps/topdeals/DetailActitivty;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/TextView;

    iput-object v0, p0, Lnet/tsapps/topdeals/DetailActitivty;->v:Landroid/widget/TextView;

    const v0, 0x7f050012

    invoke-virtual {p0, v0}, Lnet/tsapps/topdeals/DetailActitivty;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/ImageView;

    iput-object v0, p0, Lnet/tsapps/topdeals/DetailActitivty;->u:Landroid/widget/ImageView;

    invoke-virtual {p0, v7}, Lnet/tsapps/topdeals/DetailActitivty;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/TextView;

    iput-object v0, p0, Lnet/tsapps/topdeals/DetailActitivty;->w:Landroid/widget/TextView;

    const v0, 0x7f050013

    invoke-virtual {p0, v0}, Lnet/tsapps/topdeals/DetailActitivty;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/FrameLayout;

    iput-object v0, p0, Lnet/tsapps/topdeals/DetailActitivty;->x:Landroid/widget/FrameLayout;

    const v0, 0x7f050015

    invoke-virtual {p0, v0}, Lnet/tsapps/topdeals/DetailActitivty;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/FrameLayout;

    iput-object v0, p0, Lnet/tsapps/topdeals/DetailActitivty;->z:Landroid/widget/FrameLayout;

    const v0, 0x7f050016

    invoke-virtual {p0, v0}, Lnet/tsapps/topdeals/DetailActitivty;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/ImageView;

    iput-object v0, p0, Lnet/tsapps/topdeals/DetailActitivty;->A:Landroid/widget/ImageView;

    const v0, 0x7f050017

    invoke-virtual {p0, v0}, Lnet/tsapps/topdeals/DetailActitivty;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Lnet/tsapps/topdeals/views/TabView;

    iput-object v0, p0, Lnet/tsapps/topdeals/DetailActitivty;->t:Lnet/tsapps/topdeals/views/TabView;

    const v0, 0x7f050014

    invoke-virtual {p0, v0}, Lnet/tsapps/topdeals/DetailActitivty;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/TextView;

    iput-object v0, p0, Lnet/tsapps/topdeals/DetailActitivty;->y:Landroid/widget/TextView;

    const v0, 0x7f050018

    invoke-virtual {p0, v0}, Lnet/tsapps/topdeals/DetailActitivty;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/ImageView;

    iput-object v0, p0, Lnet/tsapps/topdeals/DetailActitivty;->Q:Landroid/widget/ImageView;

    iget-object v0, p0, Lnet/tsapps/topdeals/DetailActitivty;->t:Lnet/tsapps/topdeals/views/TabView;

    invoke-virtual {v0, v7}, Lnet/tsapps/topdeals/views/TabView;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/TextView;

    iput-object v0, p0, Lnet/tsapps/topdeals/DetailActitivty;->w:Landroid/widget/TextView;

    iget-object v0, p0, Lnet/tsapps/topdeals/DetailActitivty;->t:Lnet/tsapps/topdeals/views/TabView;

    const v1, 0x7f050033

    invoke-virtual {v0, v1}, Lnet/tsapps/topdeals/views/TabView;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/TextView;

    iput-object v0, p0, Lnet/tsapps/topdeals/DetailActitivty;->B:Landroid/widget/TextView;

    iget-object v0, p0, Lnet/tsapps/topdeals/DetailActitivty;->t:Lnet/tsapps/topdeals/views/TabView;

    const v1, 0x7f050053

    invoke-virtual {v0, v1}, Lnet/tsapps/topdeals/views/TabView;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/TextView;

    iput-object v0, p0, Lnet/tsapps/topdeals/DetailActitivty;->C:Landroid/widget/TextView;

    iget-object v0, p0, Lnet/tsapps/topdeals/DetailActitivty;->t:Lnet/tsapps/topdeals/views/TabView;

    const v1, 0x7f050054

    invoke-virtual {v0, v1}, Lnet/tsapps/topdeals/views/TabView;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/LinearLayout;

    iput-object v0, p0, Lnet/tsapps/topdeals/DetailActitivty;->K:Landroid/widget/LinearLayout;

    iget-object v0, p0, Lnet/tsapps/topdeals/DetailActitivty;->t:Lnet/tsapps/topdeals/views/TabView;

    const v1, 0x7f050034

    invoke-virtual {v0, v1}, Lnet/tsapps/topdeals/views/TabView;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/TextView;

    iput-object v0, p0, Lnet/tsapps/topdeals/DetailActitivty;->D:Landroid/widget/TextView;

    iget-object v0, p0, Lnet/tsapps/topdeals/DetailActitivty;->t:Lnet/tsapps/topdeals/views/TabView;

    const v1, 0x7f050055

    invoke-virtual {v0, v1}, Lnet/tsapps/topdeals/views/TabView;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/TextView;

    iput-object v0, p0, Lnet/tsapps/topdeals/DetailActitivty;->E:Landroid/widget/TextView;

    iget-object v0, p0, Lnet/tsapps/topdeals/DetailActitivty;->t:Lnet/tsapps/topdeals/views/TabView;

    const v1, 0x7f050056

    invoke-virtual {v0, v1}, Lnet/tsapps/topdeals/views/TabView;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/Button;

    iput-object v0, p0, Lnet/tsapps/topdeals/DetailActitivty;->G:Landroid/widget/Button;

    iget-object v0, p0, Lnet/tsapps/topdeals/DetailActitivty;->t:Lnet/tsapps/topdeals/views/TabView;

    const v1, 0x7f050057

    invoke-virtual {v0, v1}, Lnet/tsapps/topdeals/views/TabView;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/TextView;

    iput-object v0, p0, Lnet/tsapps/topdeals/DetailActitivty;->F:Landroid/widget/TextView;

    iget-object v0, p0, Lnet/tsapps/topdeals/DetailActitivty;->t:Lnet/tsapps/topdeals/views/TabView;

    const v1, 0x7f050058

    invoke-virtual {v0, v1}, Lnet/tsapps/topdeals/views/TabView;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/LinearLayout;

    iput-object v0, p0, Lnet/tsapps/topdeals/DetailActitivty;->L:Landroid/widget/LinearLayout;

    iget-object v0, p0, Lnet/tsapps/topdeals/DetailActitivty;->t:Lnet/tsapps/topdeals/views/TabView;

    const v1, 0x7f050059

    invoke-virtual {v0, v1}, Lnet/tsapps/topdeals/views/TabView;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/LinearLayout;

    iput-object v0, p0, Lnet/tsapps/topdeals/DetailActitivty;->M:Landroid/widget/LinearLayout;

    iget-object v0, p0, Lnet/tsapps/topdeals/DetailActitivty;->t:Lnet/tsapps/topdeals/views/TabView;

    const v1, 0x7f050051

    invoke-virtual {v0, v1}, Lnet/tsapps/topdeals/views/TabView;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/LinearLayout;

    iput-object v0, p0, Lnet/tsapps/topdeals/DetailActitivty;->H:Landroid/widget/LinearLayout;

    iget-object v0, p0, Lnet/tsapps/topdeals/DetailActitivty;->t:Lnet/tsapps/topdeals/views/TabView;

    const v1, 0x7f050052

    invoke-virtual {v0, v1}, Lnet/tsapps/topdeals/views/TabView;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/Button;

    iput-object v0, p0, Lnet/tsapps/topdeals/DetailActitivty;->I:Landroid/widget/Button;

    iget-object v0, p0, Lnet/tsapps/topdeals/DetailActitivty;->t:Lnet/tsapps/topdeals/views/TabView;

    const v1, 0x7f05005a

    invoke-virtual {v0, v1}, Lnet/tsapps/topdeals/views/TabView;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/LinearLayout;

    iput-object v0, p0, Lnet/tsapps/topdeals/DetailActitivty;->N:Landroid/widget/LinearLayout;

    iget-object v0, p0, Lnet/tsapps/topdeals/DetailActitivty;->t:Lnet/tsapps/topdeals/views/TabView;

    const v1, 0x7f05005b

    invoke-virtual {v0, v1}, Lnet/tsapps/topdeals/views/TabView;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/LinearLayout;

    iput-object v0, p0, Lnet/tsapps/topdeals/DetailActitivty;->O:Landroid/widget/LinearLayout;

    iget-object v0, p0, Lnet/tsapps/topdeals/DetailActitivty;->t:Lnet/tsapps/topdeals/views/TabView;

    const v1, 0x7f05005c

    invoke-virtual {v0, v1}, Lnet/tsapps/topdeals/views/TabView;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/LinearLayout;

    iput-object v0, p0, Lnet/tsapps/topdeals/DetailActitivty;->P:Landroid/widget/LinearLayout;

    iget-object v0, p0, Lnet/tsapps/topdeals/DetailActitivty;->j:Landroid/view/Display;

    invoke-virtual {v0}, Landroid/view/Display;->getWidth()I

    move-result v1

    const/16 v0, 0x12c

    if-ge v1, v0, :cond_1

    invoke-virtual {p0, v8}, Lnet/tsapps/topdeals/DetailActitivty;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/LinearLayout;

    new-instance v2, Landroid/widget/LinearLayout$LayoutParams;

    invoke-direct {v2, v1, v1}, Landroid/widget/LinearLayout$LayoutParams;-><init>(II)V

    invoke-virtual {v0, v2}, Landroid/widget/LinearLayout;->setLayoutParams(Landroid/view/ViewGroup$LayoutParams;)V

    iget-object v0, p0, Lnet/tsapps/topdeals/DetailActitivty;->u:Landroid/widget/ImageView;

    invoke-virtual {v0, v2}, Landroid/widget/ImageView;->setLayoutParams(Landroid/view/ViewGroup$LayoutParams;)V

    :cond_1
    invoke-virtual {p0}, Lnet/tsapps/topdeals/DetailActitivty;->getIntent()Landroid/content/Intent;

    move-result-object v0

    const-string v1, "itemid"

    invoke-virtual {v0, v1, v5, v6}, Landroid/content/Intent;->getLongExtra(Ljava/lang/String;J)J

    move-result-wide v0

    invoke-virtual {p0}, Lnet/tsapps/topdeals/DetailActitivty;->getIntent()Landroid/content/Intent;

    move-result-object v2

    const-string v3, "mode"

    invoke-virtual {v2, v3}, Landroid/content/Intent;->getStringExtra(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v2

    iput-object v2, p0, Lnet/tsapps/topdeals/DetailActitivty;->R:Ljava/lang/String;

    invoke-virtual {p0}, Lnet/tsapps/topdeals/DetailActitivty;->getIntent()Landroid/content/Intent;

    move-result-object v2

    const-string v3, "prevdealsexist"

    invoke-virtual {v2, v3, v4}, Landroid/content/Intent;->getBooleanExtra(Ljava/lang/String;Z)Z

    move-result v2

    iput-boolean v2, p0, Lnet/tsapps/topdeals/DetailActitivty;->S:Z

    invoke-virtual {p0}, Lnet/tsapps/topdeals/DetailActitivty;->getIntent()Landroid/content/Intent;

    move-result-object v2

    const-string v3, "furtherdealsexist"

    invoke-virtual {v2, v3, v4}, Landroid/content/Intent;->getBooleanExtra(Ljava/lang/String;Z)Z

    move-result v2

    iput-boolean v2, p0, Lnet/tsapps/topdeals/DetailActitivty;->T:Z

    if-eqz p1, :cond_2

    const-string v0, "itemid"

    invoke-virtual {p1, v0}, Landroid/os/Bundle;->getLong(Ljava/lang/String;)J

    move-result-wide v0

    invoke-direct {p0, v0, v1}, Lnet/tsapps/topdeals/DetailActitivty;->a(J)V

    iget-object v0, p0, Lnet/tsapps/topdeals/DetailActitivty;->t:Lnet/tsapps/topdeals/views/TabView;

    const-string v1, "activetab"

    invoke-virtual {p1, v1}, Landroid/os/Bundle;->getInt(Ljava/lang/String;)I

    move-result v1

    invoke-virtual {v0, v1}, Lnet/tsapps/topdeals/views/TabView;->a(I)V

    const-string v0, "refreshlist"

    invoke-virtual {p1, v0, v4}, Landroid/os/Bundle;->getBoolean(Ljava/lang/String;Z)Z

    move-result v0

    iput-boolean v0, p0, Lnet/tsapps/topdeals/DetailActitivty;->r:Z

    :goto_0
    iget-object v0, p0, Lnet/tsapps/topdeals/DetailActitivty;->J:Lnet/tsapps/topdeals/views/TdScrollview;

    new-instance v1, Lnet/tsapps/topdeals/e;

    invoke-direct {v1, p0}, Lnet/tsapps/topdeals/e;-><init>(Lnet/tsapps/topdeals/DetailActitivty;)V

    iput-object v1, v0, Lnet/tsapps/topdeals/views/TdScrollview;->a:Ljava/lang/Runnable;

    iget-object v0, p0, Lnet/tsapps/topdeals/DetailActitivty;->J:Lnet/tsapps/topdeals/views/TdScrollview;

    new-instance v1, Lnet/tsapps/topdeals/d;

    invoke-direct {v1, p0}, Lnet/tsapps/topdeals/d;-><init>(Lnet/tsapps/topdeals/DetailActitivty;)V

    iput-object v1, v0, Lnet/tsapps/topdeals/views/TdScrollview;->b:Ljava/lang/Runnable;

    const v0, 0x7f05002b

    invoke-virtual {p0, v0}, Lnet/tsapps/topdeals/DetailActitivty;->findViewById(I)Landroid/view/View;

    move-result-object v0

    new-instance v1, Lnet/tsapps/topdeals/j;

    invoke-direct {v1, p0}, Lnet/tsapps/topdeals/j;-><init>(Lnet/tsapps/topdeals/DetailActitivty;)V

    invoke-virtual {v0, v1}, Landroid/view/View;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    iget-object v0, p0, Lnet/tsapps/topdeals/DetailActitivty;->G:Landroid/widget/Button;

    new-instance v1, Lnet/tsapps/topdeals/l;

    invoke-direct {v1, p0}, Lnet/tsapps/topdeals/l;-><init>(Lnet/tsapps/topdeals/DetailActitivty;)V

    invoke-virtual {v0, v1}, Landroid/widget/Button;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    iget-object v0, p0, Lnet/tsapps/topdeals/DetailActitivty;->I:Landroid/widget/Button;

    new-instance v1, Lnet/tsapps/topdeals/m;

    invoke-direct {v1, p0}, Lnet/tsapps/topdeals/m;-><init>(Lnet/tsapps/topdeals/DetailActitivty;)V

    invoke-virtual {v0, v1}, Landroid/widget/Button;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    iget-object v0, p0, Lnet/tsapps/topdeals/DetailActitivty;->N:Landroid/widget/LinearLayout;

    new-instance v1, Lnet/tsapps/topdeals/bd;

    invoke-direct {v1, p0}, Lnet/tsapps/topdeals/bd;-><init>(Lnet/tsapps/topdeals/DetailActitivty;)V

    invoke-virtual {v0, v1}, Landroid/widget/LinearLayout;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    iget-object v0, p0, Lnet/tsapps/topdeals/DetailActitivty;->O:Landroid/widget/LinearLayout;

    new-instance v1, Lnet/tsapps/topdeals/bf;

    invoke-direct {v1, p0}, Lnet/tsapps/topdeals/bf;-><init>(Lnet/tsapps/topdeals/DetailActitivty;)V

    invoke-virtual {v0, v1}, Landroid/widget/LinearLayout;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    iget-object v0, p0, Lnet/tsapps/topdeals/DetailActitivty;->P:Landroid/widget/LinearLayout;

    new-instance v1, Lnet/tsapps/topdeals/bg;

    invoke-direct {v1, p0}, Lnet/tsapps/topdeals/bg;-><init>(Lnet/tsapps/topdeals/DetailActitivty;)V

    invoke-virtual {v0, v1}, Landroid/widget/LinearLayout;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    iget-object v0, p0, Lnet/tsapps/topdeals/DetailActitivty;->z:Landroid/widget/FrameLayout;

    new-instance v1, Lnet/tsapps/topdeals/bh;

    invoke-direct {v1, p0}, Lnet/tsapps/topdeals/bh;-><init>(Lnet/tsapps/topdeals/DetailActitivty;)V

    invoke-virtual {v0, v1}, Landroid/widget/FrameLayout;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    iget-object v0, p0, Lnet/tsapps/topdeals/DetailActitivty;->b:Lnet/tsapps/topdeals/h/a;

    iget-object v0, v0, Lnet/tsapps/topdeals/h/a;->a:Landroid/content/SharedPreferences;

    invoke-interface {v0}, Landroid/content/SharedPreferences;->edit()Landroid/content/SharedPreferences$Editor;

    move-result-object v0

    iget-object v1, p0, Lnet/tsapps/topdeals/DetailActitivty;->b:Lnet/tsapps/topdeals/h/a;

    iget-object v1, v1, Lnet/tsapps/topdeals/h/a;->a:Landroid/content/SharedPreferences;

    const-string v2, "startcount"

    invoke-interface {v1, v2, v5, v6}, Landroid/content/SharedPreferences;->getLong(Ljava/lang/String;J)J

    move-result-wide v1

    new-instance v3, Ljava/lang/Long;

    const v4, 0x7f0b0013

    invoke-virtual {p0, v4}, Lnet/tsapps/topdeals/DetailActitivty;->getString(I)Ljava/lang/String;

    move-result-object v4

    invoke-direct {v3, v4}, Ljava/lang/Long;-><init>(Ljava/lang/String;)V

    invoke-virtual {v3}, Ljava/lang/Long;->longValue()J

    move-result-wide v3

    cmp-long v3, v1, v3

    if-lez v3, :cond_4

    new-instance v1, Lnet/tsapps/topdeals/i;

    invoke-direct {v1, p0}, Lnet/tsapps/topdeals/i;-><init>(Lnet/tsapps/topdeals/DetailActitivty;)V

    new-instance v2, Ljava/lang/Thread;

    const/4 v3, 0x0

    const-string v4, "MagentoBackground"

    invoke-direct {v2, v3, v1, v4}, Ljava/lang/Thread;-><init>(Ljava/lang/ThreadGroup;Ljava/lang/Runnable;Ljava/lang/String;)V

    invoke-virtual {v2}, Ljava/lang/Thread;->start()V

    const-string v1, "startcount"

    invoke-interface {v0, v1, v5, v6}, Landroid/content/SharedPreferences$Editor;->putLong(Ljava/lang/String;J)Landroid/content/SharedPreferences$Editor;

    :goto_1
    invoke-interface {v0}, Landroid/content/SharedPreferences$Editor;->commit()Z

    return-void

    :cond_2
    cmp-long v2, v0, v5

    if-eqz v2, :cond_3

    invoke-direct {p0, v0, v1}, Lnet/tsapps/topdeals/DetailActitivty;->a(J)V

    goto/16 :goto_0

    :cond_3
    invoke-direct {p0, v4}, Lnet/tsapps/topdeals/DetailActitivty;->b(I)V

    goto/16 :goto_0

    :cond_4
    const-string v3, "startcount"

    const-wide/16 v4, 0x1

    add-long/2addr v1, v4

    invoke-interface {v0, v3, v1, v2}, Landroid/content/SharedPreferences$Editor;->putLong(Ljava/lang/String;J)Landroid/content/SharedPreferences$Editor;

    goto :goto_1
.end method

.method protected onCreateDialog(I)Landroid/app/Dialog;
    .locals 3

    packed-switch p1, :pswitch_data_0

    const/4 v0, 0x0

    :goto_0
    return-object v0

    :pswitch_0
    new-instance v0, Lnet/tsapps/topdeals/b/l;

    iget-object v1, p0, Lnet/tsapps/topdeals/DetailActitivty;->a:Landroid/content/Context;

    new-instance v2, Lnet/tsapps/topdeals/h;

    invoke-direct {v2, p0}, Lnet/tsapps/topdeals/h;-><init>(Lnet/tsapps/topdeals/DetailActitivty;)V

    invoke-direct {v0, v1, v2}, Lnet/tsapps/topdeals/b/l;-><init>(Landroid/content/Context;Landroid/content/DialogInterface$OnClickListener;)V

    goto :goto_0

    :pswitch_1
    new-instance v0, Lnet/tsapps/topdeals/b/m;

    invoke-direct {v0, p0}, Lnet/tsapps/topdeals/b/m;-><init>(Landroid/content/Context;)V

    goto :goto_0

    :pswitch_data_0
    .packed-switch 0x0
        :pswitch_0
        :pswitch_1
    .end packed-switch
.end method

.method public onDestroy()V
    .locals 1

    iget-object v0, p0, Lnet/tsapps/topdeals/DetailActitivty;->m:Lnet/tsapps/topdeals/c/m;

    if-eqz v0, :cond_0

    iget-object v0, p0, Lnet/tsapps/topdeals/DetailActitivty;->m:Lnet/tsapps/topdeals/c/m;

    invoke-virtual {v0}, Lnet/tsapps/topdeals/c/m;->a()V

    :cond_0
    iget-object v0, p0, Lnet/tsapps/topdeals/DetailActitivty;->n:Lnet/tsapps/topdeals/c/h;

    if-eqz v0, :cond_1

    iget-object v0, p0, Lnet/tsapps/topdeals/DetailActitivty;->n:Lnet/tsapps/topdeals/c/h;

    invoke-virtual {v0}, Lnet/tsapps/topdeals/c/h;->a()V

    :cond_1
    invoke-super {p0}, Lnet/tsapps/topdeals/abstractactivities/SwypeActivity;->onDestroy()V

    return-void
.end method

.method public onKeyDown(ILandroid/view/KeyEvent;)Z
    .locals 1

    const/4 v0, 0x4

    if-ne p1, v0, :cond_0

    invoke-virtual {p2}, Landroid/view/KeyEvent;->getRepeatCount()I

    move-result v0

    if-nez v0, :cond_0

    invoke-direct {p0}, Lnet/tsapps/topdeals/DetailActitivty;->j()V

    const/4 v0, 0x1

    :goto_0
    return v0

    :cond_0
    invoke-super {p0, p1, p2}, Lnet/tsapps/topdeals/abstractactivities/SwypeActivity;->onKeyDown(ILandroid/view/KeyEvent;)Z

    move-result v0

    goto :goto_0
.end method

.method protected onNewIntent(Landroid/content/Intent;)V
    .locals 5

    const-wide/16 v2, 0x0

    const/4 v4, 0x0

    const-string v0, "deallist"

    invoke-virtual {p1, v0}, Landroid/content/Intent;->hasExtra(Ljava/lang/String;)Z

    move-result v0

    if-eqz v0, :cond_0

    const-string v0, "deallist"

    invoke-virtual {p1, v0}, Landroid/content/Intent;->getParcelableArrayListExtra(Ljava/lang/String;)Ljava/util/ArrayList;

    move-result-object v0

    iput-object v0, p0, Lnet/tsapps/topdeals/DetailActitivty;->l:Ljava/util/ArrayList;

    :cond_0
    const-string v0, "mode"

    invoke-virtual {p1, v0}, Landroid/content/Intent;->hasExtra(Ljava/lang/String;)Z

    move-result v0

    if-eqz v0, :cond_1

    const-string v0, "mode"

    invoke-virtual {p1, v0}, Landroid/content/Intent;->getStringExtra(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v0

    iput-object v0, p0, Lnet/tsapps/topdeals/DetailActitivty;->R:Ljava/lang/String;

    :cond_1
    const-string v0, "prevdealsexist"

    invoke-virtual {p1, v0}, Landroid/content/Intent;->hasExtra(Ljava/lang/String;)Z

    move-result v0

    if-eqz v0, :cond_2

    const-string v0, "prevdealsexist"

    invoke-virtual {p1, v0, v4}, Landroid/content/Intent;->getBooleanExtra(Ljava/lang/String;Z)Z

    move-result v0

    iput-boolean v0, p0, Lnet/tsapps/topdeals/DetailActitivty;->S:Z

    :cond_2
    const-string v0, "furtherdealsexist"

    invoke-virtual {p1, v0}, Landroid/content/Intent;->hasExtra(Ljava/lang/String;)Z

    move-result v0

    if-eqz v0, :cond_3

    const-string v0, "furtherdealsexist"

    invoke-virtual {p1, v0, v4}, Landroid/content/Intent;->getBooleanExtra(Ljava/lang/String;Z)Z

    move-result v0

    iput-boolean v0, p0, Lnet/tsapps/topdeals/DetailActitivty;->T:Z

    :cond_3
    const-string v0, "itemid"

    invoke-virtual {p1, v0}, Landroid/content/Intent;->hasExtra(Ljava/lang/String;)Z

    move-result v0

    if-eqz v0, :cond_4

    const-string v0, "itemid"

    invoke-virtual {p1, v0, v2, v3}, Landroid/content/Intent;->getLongExtra(Ljava/lang/String;J)J

    move-result-wide v0

    :goto_0
    cmp-long v2, v0, v2

    if-eqz v2, :cond_5

    invoke-direct {p0, v0, v1}, Lnet/tsapps/topdeals/DetailActitivty;->a(J)V

    :goto_1
    return-void

    :cond_4
    iget-object v0, p0, Lnet/tsapps/topdeals/DetailActitivty;->p:Lnet/tsapps/topdeals/objects/Deal;

    if-eqz v0, :cond_6

    iget-object v0, p0, Lnet/tsapps/topdeals/DetailActitivty;->p:Lnet/tsapps/topdeals/objects/Deal;

    iget-wide v0, v0, Lnet/tsapps/topdeals/objects/Deal;->a:J

    goto :goto_0

    :cond_5
    invoke-direct {p0, v4}, Lnet/tsapps/topdeals/DetailActitivty;->b(I)V

    goto :goto_1

    :cond_6
    move-wide v0, v2

    goto :goto_0
.end method

.method protected onPrepareDialog(ILandroid/app/Dialog;)V
    .locals 2

    packed-switch p1, :pswitch_data_0

    :goto_0
    invoke-super {p0, p1, p2}, Lnet/tsapps/topdeals/abstractactivities/SwypeActivity;->onPrepareDialog(ILandroid/app/Dialog;)V

    return-void

    :pswitch_0
    move-object v0, p2

    check-cast v0, Lnet/tsapps/topdeals/b/l;

    iget-object v1, p0, Lnet/tsapps/topdeals/DetailActitivty;->b:Lnet/tsapps/topdeals/h/a;

    invoke-virtual {v1}, Lnet/tsapps/topdeals/h/a;->e()Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v0, v1}, Lnet/tsapps/topdeals/b/l;->a(Ljava/lang/String;)V

    goto :goto_0

    :pswitch_data_0
    .packed-switch 0x0
        :pswitch_0
    .end packed-switch
.end method

.method protected onSaveInstanceState(Landroid/os/Bundle;)V
    .locals 3

    const-string v0, "itemid"

    iget-object v1, p0, Lnet/tsapps/topdeals/DetailActitivty;->p:Lnet/tsapps/topdeals/objects/Deal;

    iget-wide v1, v1, Lnet/tsapps/topdeals/objects/Deal;->a:J

    invoke-virtual {p1, v0, v1, v2}, Landroid/os/Bundle;->putLong(Ljava/lang/String;J)V

    const-string v0, "activetab"

    iget-object v1, p0, Lnet/tsapps/topdeals/DetailActitivty;->t:Lnet/tsapps/topdeals/views/TabView;

    invoke-virtual {v1}, Lnet/tsapps/topdeals/views/TabView;->a()I

    move-result v1

    invoke-virtual {p1, v0, v1}, Landroid/os/Bundle;->putInt(Ljava/lang/String;I)V

    const-string v0, "refreshlist"

    iget-boolean v1, p0, Lnet/tsapps/topdeals/DetailActitivty;->r:Z

    invoke-virtual {p1, v0, v1}, Landroid/os/Bundle;->putBoolean(Ljava/lang/String;Z)V

    invoke-super {p0, p1}, Lnet/tsapps/topdeals/abstractactivities/SwypeActivity;->onSaveInstanceState(Landroid/os/Bundle;)V

    return-void
.end method
